package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Component
@TableName("order")
public class Order {
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;
    private Double  size;
    private  String type;
    private  String money;
    private  Integer userId;
    private Date orderTime;//订单时间
}
